<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.14"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>PxHitFlag Struct Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
  $(document).ready(initResizable);
/* @license-end */</script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectlogo"><img alt="Logo" src="PhysXLogoBlack.png"/></td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.14 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(document).ready(function(){initNavTree('structPxHitFlag.html','');});
/* @license-end */
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="summary">
<a href="#pub-types">Public Types</a> &#124;
<a href="structPxHitFlag-members.html">List of all members</a>  </div>
  <div class="headertitle">
<div class="title">PxHitFlag Struct Reference<div class="ingroups"><a class="el" href="group__scenequery.html">Scenequery</a></div></div>  </div>
</div><!--header-->
<div class="contents">

<p>Scene query and geometry query behavior flags.  
 <a href="structPxHitFlag.html#details">More...</a></p>

<p><code>#include &lt;<a class="el" href="PxQueryReport_8h_source.html">PxQueryReport.h</a>&gt;</code></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-types"></a>
Public Types</h2></td></tr>
<tr class="memitem:a44c173f6ddf0522ffbd8fa3c585e6b64"><td class="memItemLeft" align="right" valign="top">enum &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structPxHitFlag.html#a44c173f6ddf0522ffbd8fa3c585e6b64">Enum</a> { <br />
&#160;&#160;<a class="el" href="structPxHitFlag.html#a44c173f6ddf0522ffbd8fa3c585e6b64a21e4769575db55be01d8f91e06c59b1a">ePOSITION</a> = (1&lt;&lt;0), 
<a class="el" href="structPxHitFlag.html#a44c173f6ddf0522ffbd8fa3c585e6b64a5972f664c2fbe85c992fb9aaba46a5cf">eNORMAL</a> = (1&lt;&lt;1), 
<a class="el" href="structPxHitFlag.html#a44c173f6ddf0522ffbd8fa3c585e6b64aac585040db8a8a2839de7104a81a370c">eUV</a> = (1&lt;&lt;3), 
<a class="el" href="structPxHitFlag.html#a44c173f6ddf0522ffbd8fa3c585e6b64a7ec4e2f321d4fe4e3d02c4e4b532cc9b">eASSUME_NO_INITIAL_OVERLAP</a> = (1&lt;&lt;4), 
<br />
&#160;&#160;<a class="el" href="structPxHitFlag.html#a44c173f6ddf0522ffbd8fa3c585e6b64ade0c4ad4267c954d51e99905e69a399e">eMESH_MULTIPLE</a> = (1&lt;&lt;5), 
<a class="el" href="structPxHitFlag.html#a44c173f6ddf0522ffbd8fa3c585e6b64a639d134a27861f74e3721dbd7be65bbc">eMESH_ANY</a> = (1&lt;&lt;6), 
<a class="el" href="structPxHitFlag.html#a44c173f6ddf0522ffbd8fa3c585e6b64aaff8ff06630f9388c0ff8f20b7bbd9d3">eMESH_BOTH_SIDES</a> = (1&lt;&lt;7), 
<a class="el" href="structPxHitFlag.html#a44c173f6ddf0522ffbd8fa3c585e6b64af903d9ed69a9b2d397ca289752aaeef1">ePRECISE_SWEEP</a> = (1&lt;&lt;8), 
<br />
&#160;&#160;<a class="el" href="structPxHitFlag.html#a44c173f6ddf0522ffbd8fa3c585e6b64ad01fd75af43a6dffeafafb40489ac7b9">eMTD</a> = (1&lt;&lt;9), 
<a class="el" href="structPxHitFlag.html#a44c173f6ddf0522ffbd8fa3c585e6b64a7193a2accbac7b56c15ba83461b716c8">eFACE_INDEX</a> = (1&lt;&lt;10), 
<a class="el" href="structPxHitFlag.html#a44c173f6ddf0522ffbd8fa3c585e6b64afbdec54374d753fed4682d855aac7270">eDEFAULT</a> = ePOSITION|eNORMAL|eFACE_INDEX, 
<a class="el" href="structPxHitFlag.html#a44c173f6ddf0522ffbd8fa3c585e6b64a96f3049caa29758b18308a37e97370f1">eMODIFIABLE_FLAGS</a> = eMESH_MULTIPLE|eMESH_BOTH_SIDES|eASSUME_NO_INITIAL_OVERLAP|ePRECISE_SWEEP
<br />
 }</td></tr>
<tr class="separator:a44c173f6ddf0522ffbd8fa3c585e6b64"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p>Scene query and geometry query behavior flags. </p>
<p>PxHitFlags are used for 3 different purposes:</p>
<p>1) To request hit fields to be filled in by scene queries (such as hit position, normal, face index or UVs). 2) Once query is completed, to indicate which fields are valid (note that a query may produce more valid fields than requested). 3) To specify additional options for the narrow phase and mid-phase intersection routines.</p>
<p>All these flags apply to both scene queries and geometry queries (<a class="el" href="classPxGeometryQuery.html" title="Collection of geometry object queries (sweeps, raycasts, overlaps, ...). ">PxGeometryQuery</a>).</p>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="structPxRaycastHit.html" title="Stores results of raycast queries. ">PxRaycastHit</a> <a class="el" href="structPxSweepHit.html" title="Stores results of sweep queries. ">PxSweepHit</a> <a class="el" href="structPxOverlapHit.html" title="Stores results of overlap queries. ">PxOverlapHit</a> <a class="el" href="classPxScene.html#a7d7dcd877cee092f8b57c67d79982b50" title="Performs a raycast against objects in the scene, returns results in a PxRaycastBuffer object or via a...">PxScene.raycast</a> <a class="el" href="classPxScene.html#a9b07b2a98e64105a06e97ffaeba2a63d" title="Performs a sweep test against objects in the scene, returns results in a PxSweepBuffer object or via ...">PxScene.sweep</a> <a class="el" href="classPxScene.html#a31d09c0e967f9806a1f0d5df78dfc996" title="Performs an overlap test of a given geometry against objects in the scene, returns results in a PxOve...">PxScene.overlap</a> <a class="el" href="classPxGeometryQuery.html" title="Collection of geometry object queries (sweeps, raycasts, overlaps, ...). ">PxGeometryQuery</a> <a class="el" href="group__extensions.html#ga450abb675b283fd8031caf82e85844e2" title="Computes closest polygon of the convex hull geometry for a given impact point and impact direction...">PxFindFaceIndex</a> </dd></dl>
</div><h2 class="groupheader">Member Enumeration Documentation</h2>
<a id="a44c173f6ddf0522ffbd8fa3c585e6b64"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a44c173f6ddf0522ffbd8fa3c585e6b64">&#9670;&nbsp;</a></span>Enum</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">enum <a class="el" href="structPxHitFlag.html#a44c173f6ddf0522ffbd8fa3c585e6b64">PxHitFlag::Enum</a></td>
        </tr>
      </table>
</div><div class="memdoc">
<table class="fieldtable">
<tr><th colspan="2">Enumerator</th></tr><tr><td class="fieldname"><a id="a44c173f6ddf0522ffbd8fa3c585e6b64a21e4769575db55be01d8f91e06c59b1a"></a>ePOSITION&#160;</td><td class="fielddoc"><p>"position" member of <a class="el" href="structPxQueryHit.html" title="Scene query hit information. ">PxQueryHit</a> is valid </p>
</td></tr>
<tr><td class="fieldname"><a id="a44c173f6ddf0522ffbd8fa3c585e6b64a5972f664c2fbe85c992fb9aaba46a5cf"></a>eNORMAL&#160;</td><td class="fielddoc"><p>"normal" member of <a class="el" href="structPxQueryHit.html" title="Scene query hit information. ">PxQueryHit</a> is valid </p>
</td></tr>
<tr><td class="fieldname"><a id="a44c173f6ddf0522ffbd8fa3c585e6b64aac585040db8a8a2839de7104a81a370c"></a>eUV&#160;</td><td class="fielddoc"><p>"u" and "v" barycentric coordinates of <a class="el" href="structPxQueryHit.html" title="Scene query hit information. ">PxQueryHit</a> are valid. Not applicable to sweep queries. </p>
</td></tr>
<tr><td class="fieldname"><a id="a44c173f6ddf0522ffbd8fa3c585e6b64a7ec4e2f321d4fe4e3d02c4e4b532cc9b"></a>eASSUME_NO_INITIAL_OVERLAP&#160;</td><td class="fielddoc"><p>Performance hint flag for sweeps when it is known upfront there's no initial overlap. NOTE: using this flag may cause undefined results if shapes are initially overlapping. </p>
</td></tr>
<tr><td class="fieldname"><a id="a44c173f6ddf0522ffbd8fa3c585e6b64ade0c4ad4267c954d51e99905e69a399e"></a>eMESH_MULTIPLE&#160;</td><td class="fielddoc"><p>Report all hits for meshes rather than just the first. Not applicable to sweep queries. </p>
</td></tr>
<tr><td class="fieldname"><a id="a44c173f6ddf0522ffbd8fa3c585e6b64a639d134a27861f74e3721dbd7be65bbc"></a>eMESH_ANY&#160;</td><td class="fielddoc"><p>Report any first hit for meshes. If neither eMESH_MULTIPLE nor eMESH_ANY is specified, a single closest hit will be reported for meshes. </p>
</td></tr>
<tr><td class="fieldname"><a id="a44c173f6ddf0522ffbd8fa3c585e6b64aaff8ff06630f9388c0ff8f20b7bbd9d3"></a>eMESH_BOTH_SIDES&#160;</td><td class="fielddoc"><p>Report hits with back faces of mesh triangles. Also report hits for raycast originating on mesh surface and facing away from the surface normal. Not applicable to sweep queries. Please refer to the user guide for heightfield-specific differences. </p>
</td></tr>
<tr><td class="fieldname"><a id="a44c173f6ddf0522ffbd8fa3c585e6b64af903d9ed69a9b2d397ca289752aaeef1"></a>ePRECISE_SWEEP&#160;</td><td class="fielddoc"><p>Use more accurate but slower narrow phase sweep tests. May provide better compatibility with PhysX 3.2 sweep behavior. </p>
</td></tr>
<tr><td class="fieldname"><a id="a44c173f6ddf0522ffbd8fa3c585e6b64ad01fd75af43a6dffeafafb40489ac7b9"></a>eMTD&#160;</td><td class="fielddoc"><p>Report the minimum translation depth, normal and contact point. </p>
</td></tr>
<tr><td class="fieldname"><a id="a44c173f6ddf0522ffbd8fa3c585e6b64a7193a2accbac7b56c15ba83461b716c8"></a>eFACE_INDEX&#160;</td><td class="fielddoc"><p>"face index" member of <a class="el" href="structPxQueryHit.html" title="Scene query hit information. ">PxQueryHit</a> is valid </p>
</td></tr>
<tr><td class="fieldname"><a id="a44c173f6ddf0522ffbd8fa3c585e6b64afbdec54374d753fed4682d855aac7270"></a>eDEFAULT&#160;</td><td class="fielddoc"></td></tr>
<tr><td class="fieldname"><a id="a44c173f6ddf0522ffbd8fa3c585e6b64a96f3049caa29758b18308a37e97370f1"></a>eMODIFIABLE_FLAGS&#160;</td><td class="fielddoc"><p>Only this subset of flags can be modified by pre-filter. Other modifications will be discarded. </p>
</td></tr>
</table>

</div>
</div>
<hr/>The documentation for this struct was generated from the following file:<ul>
<li><a class="el" href="PxQueryReport_8h_source.html">PxQueryReport.h</a></li>
</ul>
</div><!-- contents -->
</div><!-- doc-content -->
<!-- HTML footer for doxygen 1.8.14-->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="structPxHitFlag.html">PxHitFlag</a></li>
    <li class="footer">Copyright &copy; 2008-2021 NVIDIA Corporation, 2788 San Tomas Expressway, Santa Clara, CA 95051 U.S.A. All rights reserved. <a href="http://www.nvidia.com ">www.nvidia.com</a></li>
  </ul>
</div>
</body>
</html>
